
//
//  WBDemoViewController.swift
//  Swift_weiboDemo
//
//  Created by toro宇 on 2017/5/10.
//  Copyright © 2017年 toro宇. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // 设置标题
        title = "第 \(navigationController?.childViewControllers.count ?? 0) 个"
        // Do any additional setup after loading the view.
    }
    func pushNext(){
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}

// MARK: - 设置UI配置
extension WBDemoViewController{
    override func setUpUI() {
        super.setUpUI()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(pushNext))
    }
}
